package launch;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import panel.Map;
import panel.Menu;
import engine.Engine;

public class Launch extends JFrame {

	private static final long serialVersionUID = 1L;
	private static Launch instance;
	public static final int width = 1000;
	public static final int height = 1000;

	public Launch() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(width, height);
		setVisible(true);
		setLayout(new BorderLayout());
	}

	public static Launch getInstance() {
		return instance;
	}

	public static void main(String[] args) {
		instance = new Launch();
		instance.getContentPane().add(Map.getInstance(), BorderLayout.WEST);
		instance.getContentPane().add(Menu.getInstance(), BorderLayout.CENTER);
		Engine.getInstance();
		instance.setResizable(false);
		Map.getInstance().update();
	}

}
